package com.ks.app.admin.hibernate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * KsResolution entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "KS_RESOLUTION")
public class KsResolution implements java.io.Serializable {

	// Fields
	private static final long serialVersionUID = -8901783558781399339L;
	private long rsltid;//主键ID
	private String resolution;//分辨率
	private long isshow;// 有效性 1：开放 0：关闭
	// Constructors

	/** default constructor */
	public KsResolution() {
	}

	/** minimal constructor */
	public KsResolution(long rsltid) {
		this.rsltid = rsltid;
	}

	/** full constructor */
	public KsResolution(long rsltid, String resolution,long isshow) {
		this.rsltid = rsltid;
		this.resolution = resolution;
		this.isshow=isshow;
	}

	// Property accessors
	@Id
	@SequenceGenerator(name = "KS_RESOLUTION_LOG", sequenceName = "KS_RESOLUTION_SEQ", allocationSize = 1, initialValue = 0)
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "KS_RESOLUTION_LOG")
	@Column(name = "RSLTID", unique = true, nullable = false, precision = 22, scale = 0)
	public long getRsltid() {
		return this.rsltid;
	}

	public void setRsltid(long rsltid) {
		this.rsltid = rsltid;
	}

	@Column(name = "RESOLUTION")
	public String getResolution() {
		return this.resolution;
	}

	public void setResolution(String resolution) {
		this.resolution = resolution;
	}
	@Column(name = "ISSHOW", precision = 22, scale = 0)
	public long getIsshow() {
		return this.isshow;
	}

	public void setIsshow(long isshow) {
		this.isshow = isshow;
	}
}